package week9;

import org.jetbrains.annotations.NotNull;

public class Developer {
    private String name;
    private int age;
    private String getName(){
        return name;
    }
    public void setName(String name){
        this.name = name;
    }
    private int getAge(){
        return age;
    }
    public void setAge(int age){
        this.age = age;
    }
    public void takingVehicle(@NotNull Vehicle vehicle){
        if(vehicle instanceof IPower){
            ((IPower)vehicle).power();
        }
    }
}
